{# the block declaration is needed because we call this using 'render_block_to_string' #}



{% block inner_facet_values %}
	
			<form id="fieldset_{{facet.id}}" class="filterfieldset">  {# style="display:none" #}
		      {# <label for="filter_{{facet.id}}">Filter &hellip;</label> #}
		      <input id="filter_{{facet.id}}" class="filterbox" size="30" value="enter some text to filter"/>
		    </form>
	
			<div class="valueslist">
			{% for facetvalue_group in facetvalues %}	
		
		        <ul class="u {% cycle 'u1' 'u2' %}">

					
					{% for facetvalue in facetvalue_group %}

	
						{% ifequal facetvalue.name "99morebutton99" %}

					  		<li><a id="{{facetgroup.uniquename}}__{{facet.name}}" ><span style="font-style:italic;">. . . more . . .</span></a>    
							</li>

						{% else %}


							<li>

								{# here the link is given only if the results N is > TOTITEMS! #}

								{% ifnotequal facetvalue.howmany  totitems  %}
									<a href="?filter={{facetvalue.id}}&amp;resulttype={{result_typeObj.uniquename}}{{newurl_stub}}"  id="{{facetgroup.uniquename}}_{{facetvalue.id}}" class="{{facet.name}}" title="Click to apply this filter."> 
										{{facetvalue.displayname|capfirst|default:"---"}} ({{facetvalue.howmany|default:"0"}})							
									</a>							
								{% else %}	

									<a href="#" title="All possible results already displayed.">{{facetvalue.displayname|capfirst|default:"---"}} ({{facetvalue.howmany|default:"0"}})</a>							

								{% endifnotequal %}


							</li>

						{% endifequal %}
					
					
					{% endfor %}
							
		        </ul>
		
			{% endfor %}
			</div>	
				
{% endblock %}